package com.simple.dbrouter.mapper;

import com.simple.dbrouter.annotation.DBRouter;
import com.simple.dbrouter.entity.User;
import org.apache.ibatis.annotations.Mapper;

/**
 * 功能描述:
 *
 * @author: WuChengXing
 * @create: 2021-12-30 11:05
 **/
@Mapper
public interface UserMapper {

    @DBRouter(key = "userId")
    User queryUserInfoByUserId(User req);

    @DBRouter(key = "userId")
    void insertUser(User req);
}
